package org.zjt.controller;

import jdk.nashorn.internal.ir.annotations.Reference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import org.zjt.entity.User;
import org.zjt.facade.IHelloService;

/**
 * DESC
 *
 * @author
 * @create 2017-04-14 下午4:16
 **/
@RestController
public class TestController {

    @Reference
    private IHelloService helloService;


    @GetMapping("/test")
    public String testRpc(){
        helloService.printHello();
        helloService.sayHello("world");
        return helloService.sayHello("world",new User("ZHANG","24",1));
    }
}
